print('----------------一个小游戏-----------------')
temp=input('请输入一个数字')
guess=int(temp)
num=0
while guess !=8 and num<3:
    num=++num;
    temp=input('猜错了')
    guess=int(temp)
    if guess==8:
        print('你猜的数字是',guess)
        print('猜对了')
    else:
        if guess > 8:
            print('大了，大了~~')
        else:
            print('小了，小了')
print('你猜的数字是',guess)
print('game over',num)
    
    
    
    
